package com.yunlongcoding.cahuomarketing.common;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * 通用分页参数实体类
 *
 * @author 王云龙
 * @version 1.0
 * @date 7/8/2018  5:36 PM
 */
public class CommonPageBean<T> implements Serializable {

    private static final long serialVersionUID = -2755389330235776098L;


    // 当前页数（当前第多少页）
    private int currentPageNumber ;

    // 每页显示数据记录条数（每页显示记录数）
    private int pageSize ;

    // 数据总记录数
    private int totalCount ;

    // 数据总页数
    private int totalPage ;

    // 每页显示的数据集合
    private List<T> dataList ;

    // 查询对象
    private T queryObj ;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getCurrentPageNumber() {
        return currentPageNumber;
    }

    public void setCurrentPageNumber(int currentPageNumber) {
        this.currentPageNumber = currentPageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    public T getQueryObj() {
        return queryObj;
    }

    public void setQueryObj(T queryObj) {
        this.queryObj = queryObj;
    }
}
